#include <stdint.h>
#include <stdlib.h>
#include "sensor_drv.h"
#include "led_drv.h"
#include "key_drv.h"
#include "portcan.h"
#include "porttimer.h"
#include "Slaver.h"

void CanopenAppInit(void)
{
	CanopenTimerDrvInit();
	CanopenCanDrvInit(&Slaver_Data);
	
	uint8_t nodeID = 0x02;
	setNodeId(&Slaver_Data, nodeID);
	setState(&Slaver_Data, Initialisation);
	setState(&Slaver_Data, Operational);	
}
